<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/mui.picker.css"/>
		<link rel="stylesheet" type="text/css" href="css/mui.poppicker.css"/>
		<link rel="stylesheet" type="text/css" href="css/demo.css"/>
		<link rel="stylesheet" type="text/css" href="css/iconfont.css"/>
		<style type="text/css">
			a{
				text-decoration: none!important;
			}
			.header{
				background-color: #007aff;
			}
			.header h1{
				color: white;
			}
			#showUsertxt{
				line-height: 40px;
				margin-top: 20px;
			}
			.buton{
				margin-top: 30px;
				margin-bottom: 30px;
				padding: 10px;
				border-radius: 0px;
			}
			.buton span{
				margin-right: 15px;
			}
			.lisize-img1{
				width: 60px;
				height: 60px;
				margin-right: 25px;
			}
			.lisize-img2{
				width: 20px;
				height: 20px;
				position: absolute;
				top:30px;left: 85%;
			}
			.lisize p{
				font-size: 18px;
				padding: 5px 0px 5px 0px;
			}
			.div-button button{
				border-radius: 25px;
				padding: 10px;
				width: 80%;
				margin:0 auto;
				position: relative;
				top: 100px;
			}
			label{
				font-size: 20px;
			}
			#textarea{
				line-height: 40px;
			}
			.mui-content{
				margin-top: 20px;
			}
			#showUserPicker span{
				color: #FF0000;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav header">
		    <h1 class="mui-title">出库</h1>
		</header>
		<div class="mui-content">
		    <form action="" method="post" class="mui-input-group">
		    	<div class="mui-input-row" id="showUserPicker">
		    		<label>仓库<span>*</span></label>
		    		<span id="showUsertxt"></span>
				</div>
				<div class="mui-input-row btns">
		    		<label>时间</label>
		    		<input type="text" class="mui-input-clear" placeholder="">
				</div>
				<div class="mui-input-row">
		    		<label>备注</label>
		    		<textarea id="textarea" rows="1" placeholder=""></textarea>
				</div>
		    </form>
		    <div class="mui-row">
		    	<div class="mui-col-xs-6">
		    		<a href="#" id="chushenping">
		    			<button type="button" class="mui-btn mui-btn-block buton"><span class="mui-icon iconfont icon-shuliang-zengjia_o"></span>选商品</button>
		    		</a>
		    	</div>
		    	<div class="mui-col-xs-6">
		    		<a href="">
		    			<button type="button" class="mui-btn mui-btn-block buton"><span class="mui-icon iconfont icon-saoyisao"></span>扫条码</button>
		    		</a>
		    	</div>
		    </div>
		    <ul class="mui-table-view">
			    <li class="mui-table-view-cell mui-media lisize">
			        <a href="#">
			            <img class="mui-pull-left lisize-img1" src="images/diannao.png">
			            <div class="mui-media-body">
			                <p class="mui-ellipsis">电脑</p>
			                <p class="mui-ellipsis">d12345</p>
			                
			            </div>
			            <img class="lisize-img2" src="images/sc.png">
			        </a>
			    </li>
			</ul>
			<div class="div-button">
				<a href="#" id="chukudan">
		    		<button type="button" class="mui-btn mui-btn-primary mui-btn-block">创建出库单</button>
				</a>
			</div>
		</div>
		
		
		<script src="js/mui.min.js"></script>
		<script src="js/mui.picker.js"></script>
		<script src="js/mui.poppicker.js"></script>
			<script src="js/iconfont.js"></script>
		<script type="text/javascript">
			
			(function($, doc) {
			$.init();
			$.ready(function() {
					//普通示例
					var userPicker = new $.PopPicker();
					userPicker.setData([{
						value: 'dz',
						text: '电子'
					}, {
						value: 'sm',
						text: '数码'
					}, {
						value: 'sp',
						text: '食品'
					}, {
						value: 'yp',
						text: '药品'
					}, {
						value: 'rp',
						text: '用品'
					}])
					var showUserPickerButton = doc.getElementById('showUserPicker');
					var showUsertxt=doc.getElementById('showUsertxt');
					showUserPickerButton.addEventListener('tap', function(event) {
						userPicker.show(function(items) {
							showUsertxt.innerText = items[0].text;
							//返回 false 可以阻止选择框的关闭
							//return false;
						});
					}, false);
					
				});
				})(mui, document);
			
		</script>
	</body>
	<script type="text/javascript">
		document.getElementById('chushenping').addEventListener('tap', function() {
		  		//打开关于页面
		  		
		  		mui.openWindow({
		    		url: 'chukushenping.html', 
		    		id:'chushenping'
		  		});
		});
		document.getElementById('chukudan').addEventListener('tap', function() {
		  		//打开关于页面
		  		
		  		mui.openWindow({
		    		url: 'chukudan.html', 
		    		id:'chukudan'
		  		});
		});
	</script>
</html>